home *** CD-ROM | disk | FTP | other *** search
/ Sunday Savers: Singing Fun! / Sunday Savers: Singing Fun!.iso / mac / Xtras / Buddy API 1.6 / Buddy API Docs.swf / texts / 1114.txt < prev    next >
Encoding:
Text File  |  2004-08-31  |  3.0 KB  |  121 lines

  1. 22
  2. --- RECORDSEPARATOR ---
  3.  
  4. --- RECORDSEPARATOR ---
  5. WriteRegString 
  6. --- RECORDSEPARATOR ---
  7. Platform:
  8. --- RECORDSEPARATOR ---
  9.  
  10. --- RECORDSEPARATOR ---
  11. Windows
  12. --- RECORDSEPARATOR ---
  13.  
  14. --- RECORDSEPARATOR ---
  15. Description:
  16. --- RECORDSEPARATOR ---
  17.  
  18. --- RECORDSEPARATOR ---
  19. baWriteRegString writes a string into the Windows Registry.
  20. --- RECORDSEPARATOR ---
  21.  
  22. --- RECORDSEPARATOR ---
  23. Usage:
  24. --- RECORDSEPARATOR ---
  25.  
  26. --- RECORDSEPARATOR ---
  27. Result = baWriteRegString( KeyName, ValueName, Data, Branch )
  28. --- RECORDSEPARATOR ---
  29.  
  30. --- RECORDSEPARATOR ---
  31. Arguments:
  32. --- RECORDSEPARATOR ---
  33.  
  34. --- RECORDSEPARATOR ---
  35. String, String, String, String 
  36. --- RECORDSEPARATOR ---
  37. KeyName is the name of the key. 
  38. --- RECORDSEPARATOR ---
  39. ValueName is the name of the value. In 16 bit this value is ignored. 
  40. --- RECORDSEPARATOR ---
  41. Data is the string to write into the registry. 
  42. --- RECORDSEPARATOR ---
  43. Branch is the branch of the registry to use. Can be one of the following: 
  44. --- RECORDSEPARATOR ---
  45. "HKEY_CLASSES_ROOT" 
  46. --- RECORDSEPARATOR ---
  47. "HKEY_CURRENT_USER" 
  48. --- RECORDSEPARATOR ---
  49. "HKEY_LOCAL_MACHINE" 
  50. --- RECORDSEPARATOR ---
  51. "HKEY_USERS" 
  52. --- RECORDSEPARATOR ---
  53. ΓÇ£HKEY_CURRENT_USERΓÇ¥ 
  54. --- RECORDSEPARATOR ---
  55. ΓÇ£HKEY_DYN_DATAΓÇ¥ 
  56. --- RECORDSEPARATOR ---
  57. Under 16 bit Windows, only the HKEY_CLASSES_ROOT branch is accessible - 
  58. --- RECORDSEPARATOR ---
  59. the Branch setting is ignored.
  60. --- RECORDSEPARATOR ---
  61.  
  62. --- RECORDSEPARATOR ---
  63. Returns:
  64. --- RECORDSEPARATOR ---
  65.  
  66. --- RECORDSEPARATOR ---
  67. Integer. 
  68. --- RECORDSEPARATOR ---
  69. Returns 1 if the function is successful, otherwise 0.
  70. --- RECORDSEPARATOR ---
  71.  
  72. --- RECORDSEPARATOR ---
  73. Examples:
  74. --- RECORDSEPARATOR ---
  75.  
  76. --- RECORDSEPARATOR ---
  77. Director: 
  78. --- RECORDSEPARATOR ---
  79. set OK = baWriteRegString( "Courses\Computers\101", "CurrentUser", "Gary 
  80. --- RECORDSEPARATOR ---
  81. Smith" , "HKEY_CLASSES_ROOT" ) 
  82. --- RECORDSEPARATOR ---
  83. Authorware: 
  84. --- RECORDSEPARATOR ---
  85. OK := baWriteRegString( "Courses\\Computers\\101", "CurrentUser", "Gary Smith" , 
  86. --- RECORDSEPARATOR ---
  87. "HKEY_CLASSES_ROOT" )
  88. --- RECORDSEPARATOR ---
  89.  
  90. --- RECORDSEPARATOR ---
  91. Notes:
  92. --- RECORDSEPARATOR ---
  93.  
  94. --- RECORDSEPARATOR ---
  95. A Registry entry consists of keys and sub-keys, similar to the directories and sub- 
  96. --- RECORDSEPARATOR ---
  97. directories in the Windows file system. 32 bit Windows adds Values to the registry. 
  98. --- RECORDSEPARATOR ---
  99. These can be thought of as files within the key. These Values are not available 
  100. --- RECORDSEPARATOR ---
  101. under 16 bit - the ValueName argument is ignored. 
  102. --- RECORDSEPARATOR ---
  103. Also in 16 bit, this function can only obtain values from keys located in the 
  104. --- RECORDSEPARATOR ---
  105. HKEY_CLASSES_ROOT branch of the Registry. 
  106. --- RECORDSEPARATOR ---
  107. Under Windows 3.1, the KeyName can not contain any spaces.
  108. --- RECORDSEPARATOR ---
  109.  
  110. --- RECORDSEPARATOR ---
  111. See also:
  112. --- RECORDSEPARATOR ---
  113.  
  114. --- RECORDSEPARATOR ---
  115. baReadRegString 
  116. --- RECORDSEPARATOR ---
  117. baReadRegNumber 
  118. --- RECORDSEPARATOR ---
  119. baWriteRegNumber 
  120. --- RECORDSEPARATOR ---
  121. baDeleteReg